<%--
  Created by IntelliJ IDEA.
  User: hjb
  Time: 下午 11:30
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>addTour</title>
    <%@include file="/pages/common/head.jsp"%>
    <link type="text/css" rel="stylesheet" href="static/css/style.css" >
</head>
<body>
<div id="main">
    <form action="manage/tourServlet" method="get">
        <input type="hidden" name="pageNo" value="${param.pageNo}">
        <input type="hidden" name="action" value="${ empty param.id ? "add" : "update" }" />
        <input type="hidden" name="id" value="${ requestScope.tour.id }" />
        <table>
            <tr>
                <td>名称</td>
                <td>代号</td>
                <td>目的地</td>
                <td>出发时间</td>
                <td>报名截止时间</td>
                <td>最大人数</td>
                <td>状态</td>
                <td>价格</td>
                <td colspan="2">操作</td>
            </tr>
            <tr>
                <td><input name="name" type="text" value="${requestScope.tour.name}"/></td>
                <td><input name="code" type="text" value="${requestScope.tour.code}"/></td>
                <td><input name="destination" type="text" value="${requestScope.tour.destination}"/></td>
                <td><input name="departureTime" type="text" value="${requestScope.tour.departureTime}"/></td>
                <td><input name="deadline" type="text" value="${requestScope.tour.deadline}"/></td>
                <td><input name="maxNumber" type="text" value="${requestScope.tour.maxNumber}"/></td>
                <td><input name="state" type="text" value="${requestScope.tour.state}"/></td>
                <td><input name="basicPrice" type="text" value="${requestScope.tour.basicPrice}"/></td>
                <td><input type="submit" value="提交"/></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
